package exception_;

/**
 * @Author 小闽
 * @Date 2024/9/22 20:36
 * @PackageName: exception_
 * @ClassName: ArrayIndexOutOfBoundsException_
 * @Description: 数组下标越界异常
 * @Version 1.0
 */
public class ArrayIndexOutOfBoundsException_ {
    public static void main(String[] args) {
        int[] arr = {1,2,5,6,7};
        for (int i = 0; i <= arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
